package xyz.fefine;

/**
 * 改进后的函数
 * Created by feng_ on 2016/9/17.
 */
public class OpFunction extends Function {
    protected int size;
    public OpFunction(ParameterList parameters, BlockStmnt body, Enviorment env,int size) {
        super(parameters, body, env);
        this.size = size;
    }

    /**
     *
     * @return 创建函数使用的环境
     */
    @Override
    public Enviorment makeEnv() {
        return new ArrayEnv(size, env);
    }
}
